/*
 * @Author: yc
 * @Date: 2020-05-26 20:30:10
 * @LastEditTime: 2020-05-31 11:07:37
 * @FilePath: \react-admin\src\redux\store.js
 */

import { createStore, applyMiddleware, compose } from 'redux'
import thunk from 'redux-thunk'

import reducer from './reducers'

export default createStore(
  reducer,
  compose(applyMiddleware(thunk),window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()),
)
